

# on wake up normal variables
WIFE_HOME			string		Note: Do not use anymore. Used to be the full path to wife home directory / folder. Now it's one step up from the wife system folder.
HOME_PATH			string		The full path to wife home directory / folder (the base directory of the installed application).
SYSTEM_PATH			string		The full path to wife system directory / folder.
WIFE_RELEASE_VERSION	integer		release version
WIFE_BETA_VERSION		integer		beta version (99=release)
WIFE_SP_VERSION			integer 	service pack version
SESSION					id			a session number used to tell wife when the script can exit
USER_ID					id			internal wife id of the user who fired the script
USER_SHORT				string		user's short name / login name eg. Johnny


# specific variables of interest
DATA			list		the full list of data, see below

## PROJECT
0	id					int			a click with date
1	lastid				int			a click with date when modified
2	owner				list		list of user, 0=id 1=short 2=icon
3	lastowner			list		list of lastuser, 0=id 1=short 2=icon
4	name				string		Data Project
5	number				int			the project number
6	client				list		list of the client, 0=id 1=name 2=email 3=company !!! 3.2 4=client_id
7	discounts			list		0=users 1=resources 2=rooms 3=machines 4=others 5=groups 6=labs 7=materials 8=services 9=joborder_objects
8	customs				list		user defined widget list, see PROJECT_CUSTOMS
9	budget				int			OBSOLETE, now in view settings - the budget
10	http				bool		http shared
11	http_prices			bool		show money to the client
12	note				string		note
13	invnote				string		invoice note
14	materials			list		see PRJ_MATERIALS
15	services			list		see PRJ_SERVICES
16	closed				bool		project closed
17	invoice				bool		3.3, if prj is invoiced
18	prj_po				bool		4.0 po for the prj OLD WAS fixed_price: OBSOLETE, now in view settings - 3.1 = if budget should be used for TOTAL
19	prj_color			string		4.1 if not empty = force project colour    (OLD FROM 3.3 == OBSOLETE, now in view settings - 3.1 = budget reflect from 0=buy / 1=sell
20	access				list		3.3 access list, see project access list
21	quotation			bool		3.2 if it is on quotation base
22	v_bookings			list		3.2 virtual bookings
23	expenses			list		3.2 see PRJ_EXPENSES
24	p_company_id		id			3.2 company id
25	prj_views			list		3.3 list of each prj view there is for this prj
26	prj_vat_list		list		3.3 0=name 1=rate
27	prj_saved_layouts	list		3.3 see prj_saved_layouts
28	prj_permissions		list		3.3 , users id list of who can edit the prj
29	prj_workorders		list		3.3 , see prj workorders
30	prj_timeline		list		4.0 , STATIC / can be empty see prj_timeline (index added in 3.3)
31	prj_numbers			list		3.3 , 0=id , the number is simply retrieved with "lsearch" of the objects id
32	prj_reentries		list		3.3 , re-entries, see below
33	prj_ratecard		list		3.3 , see ratecard
34	prj_override_discs	list		3.3 , a list with overrides 0=id 1=discount
35	prj_hold_invoice	bool		4.0, a flag to avoid invoice being created
36	prj_cb_sync			list		4.0, a list with all cb dependencies, see prj_cb_sync
37	prj_cb_containers	list		4.0, see cb_containers
38	prj_tl_markers		list		4.0, a list with all markers, see prj_tl_markers
39	prj_pages			list		4.0, a list with all custom pages, see prj_pages
40	prj_travel_reports	list		4.1, see travel_reports
41	prj_deps			list		4.3, TSF deps (was pre 4.3 prj_fw_links)
42	closed_mod_time		click/empty	4.6, a timestamp of when the closed flag (index 16) was set to 1. if empty string, that means unknown.
43	invoiced_mod_time	click/empty	4.6, a timestamp of when the invoice flag (index 17) was set to 1. if empty string, that means unknown.
44	cancelled			bool		4.7, if the project was cancelled
45	cancelled_mod_time	click/empty	4.7, a timestamp of when the cancelled flag (index 44) was set to 1. if empty string, that means unknown.
46	cancel_note			string		4.7, the note typed when cancelling the project
47	prj_budgets			list		4.8, the budgets for the project.
48	prj_rate_permissions list		4.8, list with the user who can work with rate in the project
49	prj_sap_number		string		4.8, SAP Project Number
